<?php /* Smarty version 2.6.26, created on 2013-09-19 10:44:03
         compiled from admin_permission.tpl */ ?>
<form method="post">
<table class="adminlist">
  <tr>
    <th></th>
    <?php $_from = $this->_tpl_vars['aRole']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['role']):
?>
    <th><?php echo $this->_tpl_vars['role']['role_title']; ?>
</th>
    <?php endforeach; endif; unset($_from); ?>
  </tr>
<?php $_from = $this->_tpl_vars['aModulePerm']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['module'] => $this->_tpl_vars['aPerm']):
?>
  <tr class="row1">
    <td colspan="<?php echo $this->_tpl_vars['colSpan']; ?>
"><strong><?php echo $this->_tpl_vars['module']; ?>
</strong></td>
  </tr>
  <?php $_from = $this->_tpl_vars['aPerm']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['perm'] => $this->_tpl_vars['r']):
?>
  <tr>
    <td><?php echo $this->_tpl_vars['perm']; ?>
</td>
    <?php $_from = $this->_tpl_vars['aRole']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['role']):
?>
    <td class="center"><input type="checkbox" name="<?php echo $this->_tpl_vars['role']['role_id']; ?>
[<?php echo $this->_tpl_vars['perm']; ?>
]" <?php if ($this->_tpl_vars['aRolePerm'][$this->_tpl_vars['role']['role_id']][$this->_tpl_vars['module']][$this->_tpl_vars['perm']]): ?>checked="checked"<?php endif; ?> /></td>
    <?php endforeach; endif; unset($_from); ?>
  </tr>
  <?php endforeach; endif; unset($_from); ?>
<?php endforeach; endif; unset($_from); ?>
<tr class="row1">
  <td colspan="<?php echo $this->_tpl_vars['colSpan']; ?>
"><input type="submit" value="Cập nhật" /></td>
</tr>
</table>
</form>